package com.cie2.janji.pages.users;

import java.util.List;

import org.apache.log4j.Logger;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.annotations.Inject;

import com.cie2.janji.base.CieUserPage;
import com.cie2.janji.entities.Category;
import com.cie2.janji.services.CategoryService;

public class CategoryList extends CieUserPage{

	static Logger logger =
	       Logger.getLogger(CategoryList.class.getName());
	
	@Property
	private Category category;
	
	//services
	@Inject
	private CategoryService categoryService;
	
	public List getCategories() {
		return categoryService.getAll();
	}
}
